package com.system.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public class TeacherExample {
	protected String orderByClause;
	protected boolean distinct;
	protected List<Criteria> oredCriteria;
	public TeacherExample() {
		oredCriteria = new ArrayList<Criteria>();
	}
	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}
	public String getOrderByClause() {
		return orderByClause;
	}
	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}
	public boolean isDistinct() {
		return distinct;
	}
	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}
	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}
	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}
	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}
	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}
	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}
	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;
		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}
		public boolean isValid() {
			return criteria.size() > 0;
		}
		public List<Criterion> getAllCriteria() {
			return criteria;
		}
		public List<Criterion> getCriteria() {
			return criteria;
		}
		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}
		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}
		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}
		protected void addCriterionForJDBCDate(String condition, Date value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			addCriterion(condition, new java.sql.Date(value.getTime()), property);
		}
		protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
			if (values == null || values.size() == 0) {
				throw new RuntimeException("Value list for " + property + " cannot be null or empty");
			}
			List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
			Iterator<Date> iter = values.iterator();
			while (iter.hasNext()) {
				dateList.add(new java.sql.Date(iter.next().getTime()));
			}
			addCriterion(condition, dateList, property);
		}
		protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
		}
		public Criteria andUseridIsNull() {
			addCriterion("userID is null");
			return (Criteria) this;
		}
		public Criteria andUseridIsNotNull() {
			addCriterion("userID is not null");
			return (Criteria) this;
		}
		public Criteria andUseridEqualTo(Integer value) {
			addCriterion("userID =", value, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridNotEqualTo(Integer value) {
			addCriterion("userID <>", value, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridGreaterThan(Integer value) {
			addCriterion("userID >", value, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
			addCriterion("userID >=", value, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridLessThan(Integer value) {
			addCriterion("userID <", value, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridLessThanOrEqualTo(Integer value) {
			addCriterion("userID <=", value, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridIn(List<Integer> values) {
			addCriterion("userID in", values, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridNotIn(List<Integer> values) {
			addCriterion("userID not in", values, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridBetween(Integer value1, Integer value2) {
			addCriterion("userID between", value1, value2, "userid");
			return (Criteria) this;
		}
		public Criteria andUseridNotBetween(Integer value1, Integer value2) {
			addCriterion("userID not between", value1, value2, "userid");
			return (Criteria) this;
		}
		public Criteria andUsernameIsNull() {
			addCriterion("userName is null");
			return (Criteria) this;
		}
		public Criteria andUsernameIsNotNull() {
			addCriterion("userName is not null");
			return (Criteria) this;
		}
		public Criteria andUsernameEqualTo(String value) {
			addCriterion("userName =", value, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameNotEqualTo(String value) {
			addCriterion("userName <>", value, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameGreaterThan(String value) {
			addCriterion("userName >", value, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameGreaterThanOrEqualTo(String value) {
			addCriterion("userName >=", value, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameLessThan(String value) {
			addCriterion("userName <", value, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameLessThanOrEqualTo(String value) {
			addCriterion("userName <=", value, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameLike(String value) {
			addCriterion("userName like", value, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameNotLike(String value) {
			addCriterion("userName not like", value, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameIn(List<String> values) {
			addCriterion("userName in", values, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameNotIn(List<String> values) {
			addCriterion("userName not in", values, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameBetween(String value1, String value2) {
			addCriterion("userName between", value1, value2, "username");
			return (Criteria) this;
		}
		public Criteria andUsernameNotBetween(String value1, String value2) {
			addCriterion("userName not between", value1, value2, "username");
			return (Criteria) this;
		}
		public Criteria andSexIsNull() {
			addCriterion("sex is null");
			return (Criteria) this;
		}
		public Criteria andSexIsNotNull() {
			addCriterion("sex is not null");
			return (Criteria) this;
		}
		public Criteria andSexEqualTo(String value) {
			addCriterion("sex =", value, "sex");
			return (Criteria) this;
		}
		public Criteria andSexNotEqualTo(String value) {
			addCriterion("sex <>", value, "sex");
			return (Criteria) this;
		}
		public Criteria andSexGreaterThan(String value) {
			addCriterion("sex >", value, "sex");
			return (Criteria) this;
		}
		public Criteria andSexGreaterThanOrEqualTo(String value) {
			addCriterion("sex >=", value, "sex");
			return (Criteria) this;
		}
		public Criteria andSexLessThan(String value) {
			addCriterion("sex <", value, "sex");
			return (Criteria) this;
		}
		public Criteria andSexLessThanOrEqualTo(String value) {
			addCriterion("sex <=", value, "sex");
			return (Criteria) this;
		}
		public Criteria andSexLike(String value) {
			addCriterion("sex like", value, "sex");
			return (Criteria) this;
		}
		public Criteria andSexNotLike(String value) {
			addCriterion("sex not like", value, "sex");
			return (Criteria) this;
		}
		public Criteria andSexIn(List<String> values) {
			addCriterion("sex in", values, "sex");
			return (Criteria) this;
		}
		public Criteria andSexNotIn(List<String> values) {
			addCriterion("sex not in", values, "sex");
			return (Criteria) this;
		}
		public Criteria andSexBetween(String value1, String value2) {
			addCriterion("sex between", value1, value2, "sex");
			return (Criteria) this;
		}
		public Criteria andSexNotBetween(String value1, String value2) {
			addCriterion("sex not between", value1, value2, "sex");
			return (Criteria) this;
		}
		public Criteria andBirthyearIsNull() {
			addCriterion("birthYear is null");
			return (Criteria) this;
		}
		public Criteria andBirthyearIsNotNull() {
			addCriterion("birthYear is not null");
			return (Criteria) this;
		}
		public Criteria andBirthyearEqualTo(Date value) {
			addCriterionForJDBCDate("birthYear =", value, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearNotEqualTo(Date value) {
			addCriterionForJDBCDate("birthYear <>", value, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearGreaterThan(Date value) {
			addCriterionForJDBCDate("birthYear >", value, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearGreaterThanOrEqualTo(Date value) {
			addCriterionForJDBCDate("birthYear >=", value, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearLessThan(Date value) {
			addCriterionForJDBCDate("birthYear <", value, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearLessThanOrEqualTo(Date value) {
			addCriterionForJDBCDate("birthYear <=", value, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearIn(List<Date> values) {
			addCriterionForJDBCDate("birthYear in", values, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearNotIn(List<Date> values) {
			addCriterionForJDBCDate("birthYear not in", values, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearBetween(Date value1, Date value2) {
			addCriterionForJDBCDate("birthYear between", value1, value2, "birthyear");
			return (Criteria) this;
		}
		public Criteria andBirthyearNotBetween(Date value1, Date value2) {
			addCriterionForJDBCDate("birthYear not between", value1, value2, "birthyear");
			return (Criteria) this;
		}
		public Criteria andDegreeIsNull() {
			addCriterion("degree is null");
			return (Criteria) this;
		}
		public Criteria andDegreeIsNotNull() {
			addCriterion("degree is not null");
			return (Criteria) this;
		}
		public Criteria andDegreeEqualTo(String value) {
			addCriterion("degree =", value, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeNotEqualTo(String value) {
			addCriterion("degree <>", value, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeGreaterThan(String value) {
			addCriterion("degree >", value, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeGreaterThanOrEqualTo(String value) {
			addCriterion("degree >=", value, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeLessThan(String value) {
			addCriterion("degree <", value, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeLessThanOrEqualTo(String value) {
			addCriterion("degree <=", value, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeLike(String value) {
			addCriterion("degree like", value, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeNotLike(String value) {
			addCriterion("degree not like", value, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeIn(List<String> values) {
			addCriterion("degree in", values, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeNotIn(List<String> values) {
			addCriterion("degree not in", values, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeBetween(String value1, String value2) {
			addCriterion("degree between", value1, value2, "degree");
			return (Criteria) this;
		}
		public Criteria andDegreeNotBetween(String value1, String value2) {
			addCriterion("degree not between", value1, value2, "degree");
			return (Criteria) this;
		}
		public Criteria andTitleIsNull() {
			addCriterion("title is null");
			return (Criteria) this;
		}
		public Criteria andTitleIsNotNull() {
			addCriterion("title is not null");
			return (Criteria) this;
		}
		public Criteria andTitleEqualTo(String value) {
			addCriterion("title =", value, "title");
			return (Criteria) this;
		}
		public Criteria andTitleNotEqualTo(String value) {
			addCriterion("title <>", value, "title");
			return (Criteria) this;
		}
		public Criteria andTitleGreaterThan(String value) {
			addCriterion("title >", value, "title");
			return (Criteria) this;
		}
		public Criteria andTitleGreaterThanOrEqualTo(String value) {
			addCriterion("title >=", value, "title");
			return (Criteria) this;
		}
		public Criteria andTitleLessThan(String value) {
			addCriterion("title <", value, "title");
			return (Criteria) this;
		}
		public Criteria andTitleLessThanOrEqualTo(String value) {
			addCriterion("title <=", value, "title");
			return (Criteria) this;
		}
		public Criteria andTitleLike(String value) {
			addCriterion("title like", value, "title");
			return (Criteria) this;
		}
		public Criteria andTitleNotLike(String value) {
			addCriterion("title not like", value, "title");
			return (Criteria) this;
		}
		public Criteria andTitleIn(List<String> values) {
			addCriterion("title in", values, "title");
			return (Criteria) this;
		}
		public Criteria andTitleNotIn(List<String> values) {
			addCriterion("title not in", values, "title");
			return (Criteria) this;
		}
		public Criteria andTitleBetween(String value1, String value2) {
			addCriterion("title between", value1, value2, "title");
			return (Criteria) this;
		}
		public Criteria andTitleNotBetween(String value1, String value2) {
			addCriterion("title not between", value1, value2, "title");
			return (Criteria) this;
		}
		public Criteria andGradeIsNull() {
			addCriterion("grade is null");
			return (Criteria) this;
		}
		public Criteria andGradeIsNotNull() {
			addCriterion("grade is not null");
			return (Criteria) this;
		}
		public Criteria andGradeEqualTo(Date value) {
			addCriterionForJDBCDate("grade =", value, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeNotEqualTo(Date value) {
			addCriterionForJDBCDate("grade <>", value, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeGreaterThan(Date value) {
			addCriterionForJDBCDate("grade >", value, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeGreaterThanOrEqualTo(Date value) {
			addCriterionForJDBCDate("grade >=", value, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeLessThan(Date value) {
			addCriterionForJDBCDate("grade <", value, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeLessThanOrEqualTo(Date value) {
			addCriterionForJDBCDate("grade <=", value, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeIn(List<Date> values) {
			addCriterionForJDBCDate("grade in", values, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeNotIn(List<Date> values) {
			addCriterionForJDBCDate("grade not in", values, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeBetween(Date value1, Date value2) {
			addCriterionForJDBCDate("grade between", value1, value2, "grade");
			return (Criteria) this;
		}
		public Criteria andGradeNotBetween(Date value1, Date value2) {
			addCriterionForJDBCDate("grade not between", value1, value2, "grade");
			return (Criteria) this;
		}
		public Criteria andCollegeidIsNull() {
			addCriterion("collegeID is null");
			return (Criteria) this;
		}
		public Criteria andCollegeidIsNotNull() {
			addCriterion("collegeID is not null");
			return (Criteria) this;
		}
		public Criteria andCollegeidEqualTo(Integer value) {
			addCriterion("collegeID =", value, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidNotEqualTo(Integer value) {
			addCriterion("collegeID <>", value, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidGreaterThan(Integer value) {
			addCriterion("collegeID >", value, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidGreaterThanOrEqualTo(Integer value) {
			addCriterion("collegeID >=", value, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidLessThan(Integer value) {
			addCriterion("collegeID <", value, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidLessThanOrEqualTo(Integer value) {
			addCriterion("collegeID <=", value, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidIn(List<Integer> values) {
			addCriterion("collegeID in", values, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidNotIn(List<Integer> values) {
			addCriterion("collegeID not in", values, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidBetween(Integer value1, Integer value2) {
			addCriterion("collegeID between", value1, value2, "collegeid");
			return (Criteria) this;
		}
		public Criteria andCollegeidNotBetween(Integer value1, Integer value2) {
			addCriterion("collegeID not between", value1, value2, "collegeid");
			return (Criteria) this;
		}
	}
	public static class Criteria extends GeneratedCriteria {
		protected Criteria() {
			super();
		}
	}
	public static class Criterion {
		private String condition;
		private Object value;
		private Object secondValue;
		private boolean noValue;
		private boolean singleValue;
		private boolean betweenValue;
		private boolean listValue;
		private String typeHandler;
		public String getCondition() {
			return condition;
		}
		public Object getValue() {
			return value;
		}
		public Object getSecondValue() {
			return secondValue;
		}
		public boolean isNoValue() {
			return noValue;
		}
		public boolean isSingleValue() {
			return singleValue;
		}
		public boolean isBetweenValue() {
			return betweenValue;
		}
		public boolean isListValue() {
			return listValue;
		}
		public String getTypeHandler() {
			return typeHandler;
		}
		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}
		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			}
			else {
				this.singleValue = true;
			}
		}
		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}
		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}
		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}